<template>
  <div class="common">
    <el-table :data="commonUser" border style="width: 100%">
      <el-table-column prop="id" label="id" width="100"> </el-table-column>
      <el-table-column prop="name" label="姓名" width="180"> </el-table-column>
      <el-table-column prop="sex" label="性别"> </el-table-column>
      <el-table-column prop="age" label="年龄"> </el-table-column>
      <el-table-column prop="birthday" label="生日"> </el-table-column>
      <el-table-column prop="limits" label="权限"> </el-table-column>
      <el-table-column prop="other" label="其他"> </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  data() {
    return {
      commonUser: [
        {
          id: 0,
          name: "xx",
          sex: "男",
          age: 15,
          birthday: "2015",
          limits: "true",
          other: null,
        },
      ],
    };
  },
  created() {
    this.getCommonUser();
  },
  methods: {
    getCommonUser() {
      this.axios.get("/getcommonuser").then((data) => {
        console.log(data);
        this.commonUser = data.data;
      });
    },
  },
};
</script>

<style>
</style>